package com.gewu.pm.ui.activity.filter;

import android.content.Context;
import android.content.Intent;

import com.gewu.pm.ui.activity.filter.base.BaseFilterActivity;
import com.gewu.pm.ui.activity.filter.config.FilterConfig;
import com.gewu.pm.ui.activity.filter.config.SelectorType;

/**
 * 筛选-打卡记录-下属
 */
public class FilterClockInRecordSubordinateActivity  extends BaseFilterActivity {

    public static void start(Context context) {
        Intent intent = new Intent(context, FilterClockInRecordSubordinateActivity.class);
        context.startActivity(intent);
    }

    @Override
    protected FilterConfig getFilterConfig() {
        return new FilterConfig.Builder()
                // 打卡状态
                .addTagSelector("clock_status", "打卡状态", 3,
                        "全部", "正常", "异常")
                // 打卡时间
                .addTimeSelector("clock_time", "日期", 3)
                // 开始时间-结束时间
                .addDateRangeSelector("date_range", "日期范围")
                // 业务员（多选）
                .addTextSelector("salesperson", "业务员", "请选择业务员", SelectorType.SALESPERSON, true)
                // 销售区域（多选）
                .addTextSelector("sales_area", "销售区域", "请选择销售区域", SelectorType.SALES_REGION, true)
                // 部门（多选）
                .addTextSelector("department", "部门", "请选择部门", SelectorType.DEPARTMENT, true)
                .build();
    }

}
